* {
  box-sizing: border-box;
  font-family: "symbols, BlinkMacSystemFont,FontAwesome,Segoe UI,Helvetica Neue,Arial,Pingfang SC,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif, SmileySans-Oblique 得意黑";
  font-size: 0.9rem;
}

// /** 全局滚动条样式 */
// ::-webkit-scrollbar {
//   width: 7px;
//   height: 5px;
//   background-color: var(--color-neutral-1);
// }

// ::-webkit-scrollbar-thumb {
//   background-color: var(--color-neutral-4);
// }

// ::-webkit-scrollbar-thumb:hover {
//   background-color: var(--color-neutral-6);
// }


/** 全局滚动条样式 */
::-webkit-scrollbar {
  width: 7px;
  height: 5px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

*:hover::-webkit-scrollbar-thumb {
  background: var(--color-neutral-4);
}

*:hover::-webkit-scrollbar-track {
  background: transparent;
}


.flex {
  display: flex;
  align-items: center;
}

.flex-c {
  flex-direction: column;
  @extend .flex;
  // & > * {
  //   width: 100%;
  // }
}

.flex-w {
  flex-wrap: wrap;
  @extend .flex;
}

.grid {
  display: grid;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
}

.grid2 {
  @extend .grid;
  grid-template-columns: repeat(2, 1fr);
}

.grid3 {
  @extend .grid;
  grid-template-columns: repeat(3, 1fr);
}

.grid4 {
  @extend .grid;
  grid-template-columns: repeat(4, 1fr);
}

// 隐藏滚动条
.scrollbar-none {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;

  /* IE 10+ */
  &::-webkit-scrollbar {
    display: none;
    /* Chrome Safari */
  }
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -webkit-box-orient: vertical;
}

.ellipsis2 {
  @extend .ellipsis;
  white-space: normal;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.ellipsis3 {
  @extend .ellipsis;
  white-space: normal;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.red-dot {
  display: flex;

  &::before {
    content: "*";
    color: red;
    font-size: 14px;
  }
}

.none {
  border: none !important;
  height: 0 !important;
  padding: 0 !important;
}

/* 设置文本块 */
.typewriter-text {
  display: flex;
  white-space: nowrap;
  border-right: .15em solid #333;
  letter-spacing: .15em;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  animation: typing 4s steps(20) infinite alternate, blink 1s infinite;
}

.cursor-blink {
  display: inline-block;
  width: 0.5em;
  /* 光标宽度 */
  height: 100%;
  /* 光标高度 */
  background-color: #333;
  /* 光标颜色 */
  margin-left: 0.075em;
  /* 光标与文本之间的间距 */
  /* 添加闪烁效果 */
  animation: blink 1s infinite;
}

/* 定义闪烁动画 */
@keyframes blink {

  from,
  to {
    border-color: #333;
  }

  50% {
    border-color: #33333300;
  }
}

/* 定义打字机动画 */
@keyframes typing {
  from {
    width: 0;
    /* 从宽度为0开始 */
  }

  to {
    width: 100%;
    /* 动画结束时，文本完全显示 */
  }
}